package com.itheima.pojo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;


/**
 * @Author: liangWeiQUQ
 * @Description:
 * @DateTime: 2021/3/28 10:27
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "question",type = "question")
public class Question {
    @Id
    private Long id;
    @Field(type = FieldType.Keyword)
    private String answer;
    @Field(type = FieldType.Text,analyzer = "ik_max_word")
    private String title;
}
